import axios from 'axios'
import { request } from '@/utils/request'
import { request_t,instance} from '@/utils/request2';
import cache from '@/utils/cache';
//个人中心 收藏项目列表
    export function GetPageList(data) {
        const url ='/api/user/Collect/PagedList';
        let res=request_t(url, 'get', data)
        return res
    };
//个人中心 添加收藏
export function Add(cid,type) {
    const url ='/api/user/Collect/add';
    const data = {
        cid:cid,
        type:type,
        callback: 'callback'
    };
    let res=request_t(url, 'post', data)
    return res
};
//个人中心 取消收藏
export function Delete(cid,type) {
    const url ='/api/user/collect/delete';
    const data = {
        cid:cid,
        type:type,
        callback: 'callback'
    };
    let res=request_t(url, 'post', data)
    return res
};